﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>
<%@ Import namespace="WebUI.Controllers" %>

<% if(Request.IsAuthenticated) {%>
    <%= Html.ViewContext.RequestContext.HttpContext.User.Identity.Name %>
    <%= Html.ActionLink("Logout", "Logoff", "Account") %>
<% } else {%>
    <%= Html.ActionLink("Login", "Login", "Account") %>
<% }%>